﻿using Orchard.ContentManagement;
using System.ComponentModel.DataAnnotations;

namespace Eneta.Profiles.Models
{
    public class ProfilePart : ContentPart<ProfilePartRecord>
    {
        [Required]
        public string FirstName
        {
            get { return Record.FirstName; }
            set { Record.FirstName = value; }
        }

        [Required]
        public string LastName
        {
            get { return Record.LastName; }
            set { Record.LastName = value; }
        }
    }
}